<!-- Sidebard left -->
<div class="sidebar col-md-3">
	<?php if(!empty($arrFolders)): ?>
    <h5 <?php if($latest_laws=='1'): ?>style="font-weight:bold;"<?php endif; ?>><a href="/documents/latest-laws.html"><span style="font-size:18px">✰</span> <?php echo Yii::t('helpdesk','Latest laws');?></h5>
    <div class="section" style="border-top:1px solid #ccc;">
        <h4><?php echo Yii::t('helpdesk','Folders'); ?></h4>
        <ul class="folder">
            <?php foreach($arrFolders as $R): ?>
            <li <?php if(isset($cateId) && $R['category_id'] == $cateId):?>class="active"<?php endif;?>>
            	<?php if($R['category_level'] > 0): for($i=0; $i<$R['category_level']; $i++): echo '&nbsp;&nbsp;&nbsp;&nbsp;'; endfor; endif; ?>
                <a href="/documents/<?php echo $R['category_id']; ?>.html">
                	<?php if(isset($cateId) && $R['category_id'] == $cateId):?><i class="fa fa-folder-open-o"></i><?php else: ?><i class="fa fa-folder-o"></i><?php endif;?>
					<?php echo $R['category_name']; ?>
                </a>
            </li>
            <?php endforeach; ?>
        </ul>
    </div>
    <?php endif; ?>
</div>